package com.cote.douhahou.pretloan.any.data.akomapalendservices;

import android.content.Context;

import com.cote.douhahou.pretloan.beans.AkomapalendASStoreBn;
import com.google.gson.Gson;
import com.cote.douhahou.pretloan.any.data.akomapalendutil.AkomapalendASStoreUtil;
import com.cote.douhahou.pretloan.any.data.akomapalendutil.AkomapalendASUtil;

public class AkomapalendASStoeIfo {

    public static AkomapalendASStoreBn dataList(final Context paramContext) {
        AkomapalendASStoreBn bean = new AkomapalendASStoreBn();
        try {
            bean.etCo(AkomapalendASStoreUtil.containSD());
            bean.sese_akomapalend(AkomapalendASStoreUtil.ramCanUse(paramContext));
            bean.sealend(AkomapalendASStoreUtil.ramTotald(paramContext));
            bean.sg(AkomapalendASStoreUtil.cashCanUse());
            bean.seshTota(AkomapalendASStoreUtil.cashTotal());
            bean.setraSD("NO");
            bean.seTotal_akomapalend(AkomapalendASStoreUtil.totalInternalStoreSize(paramContext));
            bean.seakomaalend(AkomapalendASStoreUtil.availaInternalStoreSize(paramContext));
            bean.spalend(AkomapalendASStoreUtil.ramDidUsed(paramContext));
            bean.etCashDidUsed(AkomapalendASStoreUtil.gcashDidUsed());
            bean.sdCdT(AkomapalendASStoreUtil.sDCardTotal());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return bean;
    }

    public static String zipstring(Context paramContext) {
        String zipString = "";
        try {
            AkomapalendASStoreBn infoBean = dataList(paramContext);
            String result = new Gson().toJson(infoBean).trim();
            zipString = AkomapalendASUtil.stringToGZIP(result);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return zipString;
    }

}
